package com.wn.service;

import com.wn.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.model.vo.LoginRequest;
import com.wn.model.vo.RegisterRequest;
import com.wn.model.vo.UserVo;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
* @author KOO
* @description 针对表【t_user】的数据库操作Service
* @createDate 2024-12-10 17:17:56
*/
public interface UserService extends IService<User> {

    /**
     * 用户登录
     */
    UserVo login(LoginRequest param, HttpServletRequest request);

    void sendEmail(String address);
    Map<String, String> getCode();

    UserVo findById(Long id);
    UserVo smsLogin(LoginRequest params,HttpServletRequest request);

    UserVo register(RegisterRequest registerRequest, HttpServletRequest request);
}
